#!/bin/sh -e

cd cli

version=`npm version "${1:-patch}"`
git commit package.json package-lock.json -m "Release $version."
git tag "$version"
git push
git push --tags
